package com.pro.dao;

import com.pro.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.Date;
import java.util.List;

/**
 * @ClassName MicrocircleMapper
 * @Author 谭金诚
 * @Date 2021/11/24
 */
public interface MicrocircleMapper {

    //查询ztree分类树
    List<JsActicleCategroy> getJsActicleCategroy(Integer acticleCategroyId);

    //添加ztree树节点
    boolean addZtree(JsActicleCategroy jsActicleCategroy);

    //删除树节点
    boolean delZtree(Integer acticleCategroyId);

    //修改树节点
    boolean editZtree(@Param("artcleCategroyName") String artcleCategroyName, @Param("acticleCategroyId") Integer acticleCategroyId);

    //查询微圈列表
    List<JsMicrocircle> getMicrocircleList(JsMicrocircle jsMicrocircle);

    //查询收藏量
    Integer getCollectionNum(Integer microcircleId);

    //删除微圈
    boolean delMicroCircle(Integer microcircleId);

    //添加微圈操作日志
    boolean addLog(JsLog jsLog);

    //查询微圈操作日志
    List<JsLog> selLog(JsLog jsLog);

    //删除微圈
    boolean delLog(Integer logId);

    //查询草稿状态微圈
    JsMicrocircle getDraftMicrocircle(Integer details);

    //保存微圈
    boolean upDraftMicrocircle(JsMicrocircle jsMicrocircle);

    //添加微圈(草稿)
    boolean addDraftMirList(JsMicrocircle jsMicrocircle);

    //添加微圈图片表
    boolean addMirImg(JsMicrocircleImg jsMicrocircleImg);

    //添加微圈审核表
    boolean addMirExamine(JsCourseRecord jsCourseRecord);

    //点击发布，修改草稿状态微已通过
    boolean upDraft(JsMicrocircle jsMicrocircle);

    //直接发布
    boolean addMirList(JsMicrocircle jsMicrocircle);

    //查询微圈分类
    JsActicleCategroy queryMicroCircleClassification(Integer acticleCategroyId);

    //查询微圈评论
    List<JsComment> getMicroCircleComment(Integer commodityId);

    //隐藏微圈评论
    boolean hideComment(@Param("id") Integer id, @Param("display") Integer display);

    //删除微圈评论
    boolean delComment(Integer id);

    //添加微圈评论
    boolean addMicroCircleComment(JsComment jsComment);

    //微圈统计 查询微圈分类
    List<Integer> getMicroCircleClassification();

    //微圈统计 查询点赞，浏览数量
    JsMicrocircle getHitsLikeNums(Integer acticleCategroyId);

    //微圈统计 查看收藏数量
    Integer getCollectionNums(Integer acticleCategroyId);

    //添加微圈 点击删除图片预览
    boolean delImgPreview(Integer microcircleId);
}
